/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package pe.gov.mtc.dgac.licencias.service;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import pe.gov.mtc.dgac.licencias.bean.SacpTO;
import pe.gov.mtc.dgac.licencias.persistence.SacpDAO;

/**
 *
 * @author elvis
 */
@Service
public class SacpImplService implements SacpService{

    @Autowired
    private SacpDAO sacpDAO;
    
    public List<SacpTO> listarSaco(SacpTO sacp) {
        return sacpDAO.listarSaco(sacp);
    }

    public void registrarSacp(SacpTO sacp) {
        sacpDAO.registrarSacp(sacp);
    }

    public void eliminarSacp(int id_sacp) {
        sacpDAO.eliminarSacp(id_sacp);
    }

    public SacpTO obtenerSacp(int id_sacp) {
        return sacpDAO.obtenerSacp(id_sacp);
    }

}
